package com.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class HeadController {

    @RequestMapping(value = "/logout")
    public String logout(HttpServletRequest request){
        request.getSession().removeAttribute("userSession");
        return "login";
    }

    @RequestMapping(value = "/frame")
    public String frame(){
        return "frame";
    }

    @RequestMapping(value = "/toSysError")
    public String sysError(){
        return "sysError";
    }

}
